import {wxAppMessageShareData,wxTimelineShareData,getShareLink} from '../wxInit'
export default {
		onShow() {
			// 设置默认的转发参数
			uni.$endless.mpShare = {
				title: '', // 分享标题
				desc: '',// 分享描述
				link: getShareLink() ,// 分享链接
				imgUrl:'',// 分享图标
			}
			this.mpShareInit()
		},
		methods:{
			mpShareInit () {
				wxAppMessageShareData(uni.$endless.mpShare)
				wxTimelineShareData(uni.$endless.mpShare)
			}
		}
	
}